<template>
    <div>

         <t-form :data="formData" :resetType="resetType" colon @reset="onReset" @submit="onSubmit">
                           <t-form-item label="权限" name="gender">
        <t-radio-group v-model="formData.gender" :options="courseOptions">

        </t-radio-group>
      </t-form-item>
      <t-form-item label="车牌号码" name="number">
        <t-input v-model="formData.number" placeholder="请输入内容"></t-input>
      </t-form-item>
      <t-form-item label="邮箱号码" name="mail">
        <t-input v-model="formData.mail" placeholder="请输入内容"></t-input>
      </t-form-item>
<t-form-item label="修改密码" name="tel">
      <t-input v-model="formData.password" placeholder="请输入内容,无输入则不改动"></t-input>
          </t-form-item>
      <t-form-item style="padding-top: 8px">
        <t-button theme="primary" type="submit" style="margin-right: 10px">提交</t-button>
        <t-button theme="default" variant="base" type="reset">重置</t-button>
      </t-form-item>
    </t-form>
    </div>
</template>
<script>
const INITIAL_DATA = {
  number: '',
  mail: '',
  gender: '',
  password: ''
}

export default {
    props: {
      row: {
type: () => Array
      }
},
created() {
  console.log('111',this.row)
this.formData.number = this.data1

},
  data() {
    return {

      resetType: 'initial',
      formData: { ...INITIAL_DATA },
      data2: this.data1,
      courseOptions: [
        { label: '超级管理员', value: '1' },
        { label: '管理员', value: '2' },
        { label: '用户', value: '3' }
      ]
    }
  },

  methods: {
    onReset() {
      this.$message.success('重置成功')
    },
    onSubmit({ validateResult, firstError }) {
      console.log('11111',this.roow)
    }
  }
}
</script>